<?php

namespace app\common\validate;

use think\Validate;

class Room extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'page|页码'          => 'require',
        'pageCount|页面数量' => 'require',
        'password|口令'      => 'require',
        'roomNumber|房间编号'        => 'require',
        'roleId|角色ID' => 'require',
    ];
    /**
     * 提示消息
     */
    protected $message = [
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'joinRoom' => ['password', 'roomNumber'],
        'roomPeople' => ['roomNumber','page','pageCount'],
        'roleDetail' => ['roleId'],
        'roleList'   => ['page','pageCount','roomNumber'],
        'selfRole'   => ['roomNumber'],
        'geamResult' => ['roomNumber'],
    ];
}